﻿using DapperExtensions.Mapper;

namespace ZilLion.Service.ZilLionOss.Domain.Entitys
{
    /// <summary>
    ///     用户岗位映射
    /// </summary>
    public class OssUserRoleEntity
    {
        public long UserId { get; set; }
        public long RoleId { get; set; }
    }


    public class OssUserRoleEntityMapper : ClassMapper<OssUserRoleEntity>
    {
        public OssUserRoleEntityMapper()
        {
            Table("oss_user_roles");
            Map(f => f.UserId).Column("userid").Key(KeyType.Assigned);
            Map(f => f.RoleId).Column("roleid").Key(KeyType.Assigned);
        }
    }
}